package com.service.serviceInterface;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.common.apiresult.CommonResult;
import com.common.domain.dto.AddGuestRecordDTO;
import com.common.domain.dto.GuestRecordQueryDTO;
import com.system.entity.Guest;

/**
 *
 */
public interface GuestService extends IService<Guest> {

    CommonResult getData(GuestRecordQueryDTO dto, long userId);

    CommonResult delete(String id);

    CommonResult add(AddGuestRecordDTO dto, long userId);

    CommonResult updateData(AddGuestRecordDTO dto, long userId);
    
    IPage<Guest> select(GuestRecordQueryDTO dto, long userId);

    boolean insert(Guest guest);
}
